import http from "@/api/axios";

export const getListApi = (data: ReleaseCargo.SearchParams) => {
  return http({
    method: "post",
    url: "/base/biz/preOrderShipmentReleaseApply/pageData",
    data
  });
};
// 获取标签页 各状态 数量
export const getPageStaticApi = (data: ReleaseCargo.SearchParams) => {
  return http({
    method: "post",
    url: "/base/biz/preOrderShipmentReleaseApply/pageStat",
    data
  });
};
// 放货
export const passApplyApi = (data: Array<string>) => {
  return http({
    method: "post",
    url: "/base/biz/preOrderShipmentReleaseApply/passApply",
    data
  });
};
// 驳回
export const rejectReleaseCargoApi = (data: { idList: string[]; refuseReason: string }) => {
  return http({
    method: "post",
    url: "/base/biz/preOrderShipmentReleaseApply/refuseApply",
    data
  });
};

// 导出放货管理excel
export const getShipmentReleaseExcelListApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: `export/biz/exportExcel/getShipmentReleaseExcelList`,
    data
  });
};
